package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Data
@TableName("t_config_decode")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
@Entity
@Table(name="T_CONFIG_DECODE")
public class ConfigDecode extends BaseEntity {

    /**
     * 解码配置编号
     */
	@Id
	@TableId(value = "decode_id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
    @ApiModelProperty(value="解码配置编号")
    private Long decodeId;

    /**
     * 解码名称
     */
    @ApiModelProperty(value="解码名称")
	@Column(name = "decode_name",length = 255)
	private String decodeName;

    /**
     * 解码描述
     */
    @ApiModelProperty(value="解码描述")
	@Column(name = "decode_description",length = 1024)
	private String decodeDescription;

    /**
     * 解码参数
     */
    @ApiModelProperty(value="解码参数")
	@Column(name = "decode_params",columnDefinition = "CLOB")
	private String decodeParams;

	/**
	 * 样例文件
	 */
	@ApiModelProperty(value="样例文件")
	@Column(name = "sample_file",length = 200)
	private String sampleFile;

	/**
	 * 申请单
	 */
	@ApiModelProperty(value="节目单")
	@Column(name = "play_bill_id",length = 200)
	private Long playBillId;


}
